package com.secxiot.provider.user.dao;

import com.secxiot.provider.user.entity.SOSReceiver;
import com.secxiot.provider.user.entity.SOSReceiverExample;
import com.secxiot.provider.user.vo.UserSimpleVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SOSReceiverDao {
    int countByExample(SOSReceiverExample example);

    int deleteByExample(SOSReceiverExample example);

    int deleteByPrimaryKey(Long id);

    int insert(SOSReceiver record);

    int insertSelective(SOSReceiver record);

    List<SOSReceiver> selectByExample(SOSReceiverExample example);

    SOSReceiver selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") SOSReceiver record, @Param("example") SOSReceiverExample example);

    int updateByExample(@Param("record") SOSReceiver record, @Param("example") SOSReceiverExample example);

    int updateByPrimaryKeySelective(SOSReceiver record);

    int updateByPrimaryKey(SOSReceiver record);

    List<UserSimpleVo> selectHospitalSOSDoctor(@Param("hospitalId") Long hospitalId, @Param("deptId") Long deptId, @Param("taskType") String taskType);
}